﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace octopus_project.scene.cannon.weapon {
    abstract class Weapon {

        protected byte[,] dimension;
        private Damage damage;
        protected bool enabled = true;
        protected byte shootting = 0;
        protected byte nroShotsPosible = 2;

        public bool Enabled {
            get { return enabled; }
            set { enabled = value; }
        }


        public Damage Damage {
            get { return damage; }
            set { damage = value; }
        }


        public byte[,] Dimension {
            get { return dimension; }
            set { dimension = value; }
        }
        public Damage shot() {
            if (enabled && shootting < nroShotsPosible) {
                shootting++;
                playSongShot();
                return damage;
            }
            shootting = 0;
            return null;
        }
        public abstract void playSongShot();
    }
}
